﻿using System;
using System.Text;

public partial class CodeBehind : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        StringBuilder sb = new StringBuilder();

        if(Page.IsPostBack){
            sb.Append("页面提交加载：" + Page.Request.UserAgent);
        }

        sb.Append("页面首次加载：" + Page.Request.UserHostAddress);

        lblMessage.Text = sb.ToString();
    }
}